#include <cstdio>
#include <algorithm>
using namespace std;
int x,y;
int a[3];
bool cmp(int a,int b){
    return a>b;
}
int main(void){
    scanf("%d%d",&x,&y);
    a[0]=a[1]=a[2]=y;
    int c=0;
    while(!(a[0]==x && a[1]==x && a[2]==x)){
        sort(a,a+3);
        //printf("%d %d %d\n",a[0],a[1],a[2]);
        a[0]=a[1]+a[2]-1 > x ? x :a[1]+a[2]-1;
        c++;
    }
    printf("%d\n",c);
    return 0;
}